<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8" isErrorPage="true"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link rel="stylesheet" type="text/css" href="css/main.css">
<%
	response.setStatus(HttpServletResponse.SC_OK);
%>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>404 - 对不起，您查找的页面不存在！</title>
</head>
<body>
	<div id="wrapper"><a class="logo" href="/"></a>
  <div id="main">
    <div id="header">
      <h1><span class="icon">!</span>404<span class="sub">page not found</span></h1>
    </div>
    <div id="content">
      <h2>您打开的这个的页面不存在！</h2>
      <p>当您看到这个页面,表示您的访问出错,这个错误是您打开的页面不存在,请确认您输入的地址是正确的。感谢您的支持!</p>
      <div class="utilities">
          <div class="input-container" style="font: 13px 'TeXGyreScholaRegular', Arial, sans-serif;color: #696969; text-shadow: 0 1px white;text-decoration: none;">
            <span id="totalSecond" style="color:red">5</span>秒后自动跳转成才网首页…
          </div>
        <a class="button right" href="#" onClick="history.go(-1);return true;">返回...</a>
        <div class="clear"></div>
      </div>
    </div>
  </div>
</div>
</body>

<!--定义js变量及方法-->
<script language="javascript" type="text/javascript">
	var second = document.getElementById('totalSecond').textContent;

	if (navigator.appName.indexOf("Explorer") > -1) {
		second = document.getElementById('totalSecond').innerText;
	} else {
		second = document.getElementById('totalSecond').textContent;
	}

	setInterval("redirect()", 1000);
	function redirect() {
		if (second < 0) {

			<!--定义倒计时后跳转页面-->
			location.href = 'http://localhost:8080/chengcai/index.html';
		} else {
			if (navigator.appName.indexOf("Explorer") > -1) {
				document.getElementById('totalSecond').innerText = second--;
			} else {
				document.getElementById('totalSecond').textContent = second--;
			}
		}
	}
</script>

</html>